package com.iss.ljx.menu.repository;

import com.iss.ljx.mybatis.entity.PtMenuEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MenuDao {
    PtMenuEntity getMenuInfoById(@Param("menuId") String menuId);
    void modifyMenuInfoById(@Param("entity") PtMenuEntity entity);
    void addMenuInfoById(@Param("entity")PtMenuEntity entity);
    void deleteMenuInfoById(@Param("menuId")String menuId);


    List<PtMenuEntity> getUserMenu(@Param("userId")String userId);
    String getUserRoleId(@Param("userId")String userId);
    Integer setUserMenu(@Param("roleId")String roleId,@Param("menuId")String menuId);
    Integer delUserMenu(@Param("roleId")String roleId,@Param("menuId")String menuId);
}
